// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package org.tinaelle.server.domain;
/**
 * @see org.tinaelle.server.domain.AdElementTrl
 */
public class AdElementTrlDaoImpl
    extends org.tinaelle.server.domain.AdElementTrlDaoBase
{
    /**
     * @see org.tinaelle.server.domain.AdElementTrlDao#toAdElementTrlDTO(org.tinaelle.server.domain.AdElementTrl)
     */
    public org.tinaelle.common.dto.AdElementTrlDTO toAdElementTrlDTO(final org.tinaelle.server.domain.AdElementTrl entity)
    {
        return super.toAdElementTrlDTO(entity);
    }

    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private org.tinaelle.server.domain.AdElementTrl loadAdElementTrlFromAdElementTrlDTO(org.tinaelle.common.dto.AdElementTrlDTO adElementTrlDTO)
    {
        org.tinaelle.server.domain.AdElementTrl adElementTrl = this.load(adElementTrlDTO.getAdElementTrlId());
        if (adElementTrl == null)
        {
            adElementTrl = org.tinaelle.server.domain.AdElementTrl.Factory.newInstance();
        }
        return adElementTrl;
    }

    
    /**
     * @see org.tinaelle.server.domain.AdElementTrlDao#adElementTrlDTOToEntity(org.tinaelle.common.dto.AdElementTrlDTO)
     */
    public org.tinaelle.server.domain.AdElementTrl adElementTrlDTOToEntity(org.tinaelle.common.dto.AdElementTrlDTO adElementTrlDTO)
    {
        org.tinaelle.server.domain.AdElementTrl entity = this.loadAdElementTrlFromAdElementTrlDTO(adElementTrlDTO);
        this.adElementTrlDTOToEntity(adElementTrlDTO, entity, true);
        return entity;
    }
}